﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Applet.ResponseDto
{
    public class MeasureDataAnalysisResponseDto
    {
        /// <summary>
        /// 响应码，0代表成功，非0代表失败
        /// </summary>
        [JsonProperty("errorCode")]
        public int Code { get; set; }

        /// <summary>
        /// 响应消息
        /// </summary>
        [JsonProperty("msg")]
        public string Message { get; set; }

        /// <summary>
        /// 返回结果
        /// </summary>
        [JsonProperty("data")]
        public object Data { get; set; } = new List<DiagnosticReport>();
    }

    /// <summary>
    /// 诊断报告
    /// </summary>
    public class DiagnosticReport
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件
        /// </summary>
        public string FileData { get; set; }
    }
}